package com.paic.mhis.hcpms.common.community.web.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.paic.mhis.common.base.dto.LabelDTO;
import com.paic.mhis.hcpms.common.community.biz.service.CommunityService;
import com.paic.pafa.appclient.annotation.BizServicesProxy;

@Controller
@RequestMapping("/hcpmsBaseInfo/")
public class HcpmsBaseInfoController {
	@BizServicesProxy(beanName = "communityService")
	public CommunityService communityService;

	/**
	 * 查询所有性别，页面下拉菜单使用
	 * 
	 * @return
	 */
	@RequestMapping("getAllSex.do")
	@ResponseBody
	public List<LabelDTO<String>> getAllSex() {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("dictType", "sexi");
		return communityService.getAllFiledDict(param);
	}

}
